<!--
 * @Description:: 请补充填写
 * @Version: 1.0
 * @Author: 小白
 * @Date: 2024-09-06 13:21:51
 * @LastEditors: 小白
 * @LastEditTime: 2024-09-06 13:47:51
 * @FilePath: \aichatadmin\src\components\markbox\index.vue
-->
<template>
  <div class="markedbox">
    <div class="marked">
      <div class="marked_title">提示</div>
      <div class="marked_body">
       确认要删除本条记录吗？
      </div>
      <div class="marked_footer">
        <div class="item" @click="cancel">取消</div>
        <div class="item" @click="ok">确定</div>
      </div>
    </div>
  </div>
</template>
<script setup lang="ts">
const emit  = defineEmits([
  'ok','cancel'
])
const props = defineProps({
  content:{
    type:String,
    default:''
  }
})
const ok = () =>{
  emit('ok','')
}
const cancel = ()=>{
  emit('cancel','')
}
</script>
<style scoped lang="scss">
.markedbox{
		width: 100vw;
		height: 100vh;
		background: rgba(0,0,0,.5);
		display: flex;
		justify-content: center;
		align-items: center;
		z-index: 9999;
		position: fixed;
		top: 0;
		left: 0;
		.marked{
			border-radius: 10px;
			background: rgba(156, 161, 127, .5);
			overflow: hidden;
			width: 360px;
			color: #ffffff;
			min-height: 100px;
			.marked_title{
				text-align: center;
				font-weight: bold;
				font-size: 20px;
				line-height: 40px;
				border-bottom: 1px solid rgba(156, 161, 127, 1);
			}
			.marked_body{
				min-height: 80px;
				padding: 20px;
				line-height: 80px;
				text-align: center;
			}
			.marked_footer{
				display: flex;
				justify-content: space-between;
				align-items: center;
				border-top: 1px solid rgba(156, 161, 127, 1);
				.item{
					width: 100%;
					height: 40px;
					text-align: center;
					line-height: 40px;
          cursor: pointer;
				}
				.item:first-child{
					border-right: 1px solid rgba(156, 161, 127, 1);
				}
			}
		}
	}
</style>